# Contributor: Maxim Karasev <begs@disroot.org>
# Maintainer: Maxim Karasev <begs@disroot.org>
pkgname=nvim-lspconfig
pkgver=0.1.2
pkgrel=1
pkgdesc="quickstart configurations for the neovim LSP client"
url="https://github.com/neovim/nvim-lspconfig"
arch="noarch"
license="Apache-2.0"
subpackages="$pkgname-doc"
source="https://github.com/neovim/nvim-lspconfig/archive/v$pkgver/nvim-lspconfig-$pkgver.tar.gz"
options="!check" # requires entire neovim tree

package() {
	install -d "$pkgdir"/usr/share/nvim/site
	cp -ra lua plugin "$pkgdir"/usr/share/nvim/site
	install -Dm644 doc/*.txt -t "$pkgdir"/usr/share/nvim/site/doc
	install -Dm644 README.md doc/*.md -t "$pkgdir"/usr/share/doc/$pkgname
}

doc() {
	default_doc
	amove usr/share/nvim/site/doc
}

sha512sums="
854412f1b5d2f01c56ff8e7f9712e782c10c9dfdf554ea7c94ef59c985aa29b7b6b966ffedc8f5a23bee177fe429bf09a7ce24bc5a6ba4e6ff1faacbe8add24b  nvim-lspconfig-0.1.2.tar.gz
"
